<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<html>
<body>
<h2>Hello World!</h2>
<script language="javascript">
    function saveRequestFrom() {
        var form = document.getElementById("uploadForm");
        form.action = "${pageContext.request.contextPath}/form/uploadFile";
        form.submit();
    }

</script>
<form id="uploadForm" method="post" enctype="multipart/form-data">
    　　<input type="file" id="upload" name="upload" />
    　　<input type="button" value="保存" onclick="saveRequestFrom()" />
</form>
</body>
</html>
